body{
/* 订单页面主体样式 */
.order-page {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* 订单头部搜索和筛选 */
.order-header {
    background: #fff;//背景颜色
    padding: 20px;//内容与边框有一定的距离
    border-radius: 8px;//四个角更加圆滑
    margin-bottom: 20px;//与下一元素保持的间距
    display: flex;//弹性布局
    justify-content: space-between;//水平对齐
    align-items: center;//垂直方向居中
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 搜索框样式 */
.search-box {
    display: flex;
    gap: 10px; //设置子元素之间的间距为10px
}

.search-box input {
    width: 300px;
    height: 36px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: #ff5000;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,80,0,0.1);
}

.search-btn {
    height: 100%;
    padding: 0 25px;
    border: none;
    background: #1890ff;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.3s ease;
}
.search-btn1{
    height: 35px;
    width: 80px;
    border: none;
    background: #1890ff;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.3s ease;
}
.search-btn:hover {
    background: #ff6a1f;
}

/* 日期筛选 */
.date-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.date-filter select {
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.date-filter select:hover {
    border-color: #ff5000;
}

/* 订单状态筛选 */
.order-filter {
    display: flex;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    overflow: hidden;
}

.filter-item {
    padding: 15px 30px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.filter-item:hover {
    color: #ff5000;
}

.filter-item.active {
    color: #ff5000;
}

.filter-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30px;
    right: 30px;
    height: 2px;
    background: #ff5000;
}

/* 状态数字标签 */
.badge {
    background: #ff5000;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

.count {
    background: #f5f5f5;
    color: #666;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

/* 订单列表 */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 订单项 */
.order-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s;
}

.order-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* 订单头部 */
.order-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-meta {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.order-type {
    padding: 2px 8px;
    background: #f5f5f5;
    color: #666;
    border-radius: 2px;
    font-size: 12px;
}

/* 订单状态样式 */
.order-status {
    font-weight: 500;
}

.order-status.pending {
    color: #ff5000;
}

.order-status.shipped {
    color: #52c41a;
}

.order-status.completed {
    color: #999;
}

/* 订单内容 */
.order-content {
    padding: 20px;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-item {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.product-item:last-child {
    border-bottom: none;
}

.product-item img {
    width: 100px;
    height: 130px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s;
}

.product-item:hover img {
    transform: scale(1.05);
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-info h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.author {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

/* 商品属性标签 */
.book-attrs {
    margin: 5px 0;
    display: flex;
    gap: 8px;
}

.book-attrs span {
    padding: 2px 8px;
    background: #f5f5f5;
    color: #666;
    border-radius: 2px;
    font-size: 12px;
}

.price-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.price {
    color: #ff5000;
    font-size: 16px;
    font-weight: 500;
}

.count {
    color: #999;
}

/* 订单底部 */
.order-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-info {
    color: #666;
    display: flex;
    align-items: center;
}

.divider {
    color: #e0e0e0;
    margin: 0 10px;
}

.total-price {
    color: #ff5000;
    font-size: 18px;
    font-weight: 500;
}

.delivery-info {
    color: #52c41a;
}

/* 倒计时 */
.countdown {
    color: #ff5000;
    font-size: 14px;
    margin-right: 20px;
}

/* 按钮样式 */
.order-actions {
    display: flex;
    gap: 10px;
}

.btn-default {
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-default:hover {
    border-color: #ff5000;
    color: #ff5000;
}

.btn-primary {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    background: #ff5000;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #ff6a1f;
}

/* 分页 */
.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    border-color: #ff5000;
    color: #ff5000;
}

.page-btn.active {
    background: #ff5000;
    color: #fff;
    border-color: #ff5000;
}

.page-btn:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.page-ellipsis {
    color: #999;
}

.page-info {
    color: #666;
    font-size: 14px;
    margin-left: 15px;
}

/* 确认弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.modal-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.modal-content p {
    color: #666;
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .order-page {
        padding: 0 15px;
    }

    .order-header {
        flex-direction: column;
        gap: 15px;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        flex: 1;
        width: auto;
    }

    .date-filter {
        width: 100%;
    }

    .date-filter select {
        flex: 1;
    }

    .order-filter {
        overflow-x: auto;
    }

    .filter-item {
        padding: 15px 20px;
        white-space: nowrap;
    }

    .product-item img {
        width: 80px;
        height: 80px;
    }

    .product-info h3 {
        font-size: 14px;
    }

    .order-footer {
        flex-direction: column;
        gap: 15px;
    }

    .order-actions {
        width: 100%;
    }

    .btn-default,
    .btn-primary {
        flex: 1;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .order-meta {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }

    .product-info h3 {
        font-size: 13px;
    }

    .price {
        font-size: 14px;
    }

    .total-price {
        font-size: 16px;
    }

    .book-attrs {
        flex-wrap: wrap;
    }
}
}

